//===================================================================================
// $$
//
// Coder: Code Milker v1.0
// 0 - EntityName
// 1 - Properties
//===================================================================================

namespace App.Domain.Handlers {
    using App.Data;
    using App.Domain.Contracts;
    using App.Domain.Models;

    public class UpdateSkill {
        private readonly ISkillRepository _skillRepository;

        public UpdateSkill(ISkillRepository skillRepository) {
            _skillRepository = skillRepository;
        }

        public void Execute(ICreateSkillCommand skillForm) {
            var skill = skillForm.ConvertToEntity();

            _skillRepository.Update(skill);
        }
    }
}
